<%@ page contentType="text/html; charset=utf-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>新增填制要点</title>
       
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDialog.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDrag.js"></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>
      

    </head>

    <body>
     
           <s:form id="form" name="form" action="%{actionURI}.action" method="post" theme="simple">
            
             <s:if test="actionURI=='savePoints'">
              <input id="points.document_id" name="points.document_id" type="hidden" value="${document_id}"></input>
              <input id="document_id" name="document_id" type="hidden" value="${document.id}"></input>
                <table width="65%" height="450" border="0"  align="center" cellpadding="2" cellspacing="1">   
                    <tr>
                        <td width="21%"  align="center" bgcolor="#b5d6e6">适用项目</td>
                        <td width="79%" align="center" bgcolor="#EBF4F5">
                            <input type="text" id="points.project" name="points.project" style="width: 90%; height: 90%" /></td>
                    </tr>
                  <tr>
                        <td bgcolor="#b5d6e6"  align="center">填写示例</td>
                        <td  align="center" bgcolor="#EBF4F5">	<textarea id="points.fillExample" name="points.fillExample" rows="3" style="width: 90%"></textarea></td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >其他示例</p></td>
                        <td align="center" bgcolor="#EBF4F5">	<textarea id="points.otherExample" name="points.otherExample" rows="3" style="width: 90%"></textarea></td>
                    </tr>
                   
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >填写格式</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	<textarea id="points.fillform" name="points.fillform" rows="3" style="width: 90%"></textarea></td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >填写规定</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	<textarea id="points.fillprovision" name="points.fillprovision" rows="3" style="width: 90%"></textarea></td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >常识和经验</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	<textarea id="points.experience" name="points.experience" rows="3" style="width: 90%"></textarea></td>
                    </tr>
                  
                </table>
                 </s:if>
                <s:else>
                 <s:hidden id="points.id" name="points.id"></s:hidden>
                 <s:hidden id="points.document_id" name="points.document_id"></s:hidden>
               <table width="65%" height="450" border="0"  align="center" cellpadding="2" cellspacing="1">   
                    <tr>
                        <td width="21%"  align="center" bgcolor="#b5d6e6">适用项目</td>
                        <td width="79%" align="center" bgcolor="#EBF4F5">
                            <input type="text" id="points.project" name="points.project" value="<s:property value="points.project"/>" style="width: 90%; height: 90%" /></td>
                    </tr>
                  <tr>
                        <td bgcolor="#b5d6e6"  align="center">填写示例</td>
                        <td  align="center" bgcolor="#EBF4F5">
                            <textarea id="points.fillExample" name="points.fillExample" rows="3" style="width: 90%"><s:property value="points.fillExample"/>
                            </textarea>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >其他示例</p></td>
                        <td align="center" bgcolor="#EBF4F5">	
                            <textarea id="points.otherExample" name="points.otherExample"  rows="3" style="width: 90%"><s:property value="points.otherExample"/>
                            </textarea></td>
                    </tr>
                   
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >填写格式</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	
                            <textarea id="points.fillform" name="points.fillform" rows="3" style="width: 90%"><s:property value="points.fillform"/>
                            </textarea>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >填写规定</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	
                            <textarea id="points.fillprovision" name="points.fillprovision" rows="3" style="width: 90%"><s:property value="points.fillprovision"/>
                            </textarea></td>
                    </tr>
                    <tr>
                        <td bgcolor="#b5d6e6"  align="center"><p >常识和经验</p></td>
                        <td  align="center" bgcolor="#EBF4F5">	
                            <textarea id="points.experience" name="points.experience" rows="3" style="width: 90%"><s:property value="points.experience"/>
                            </textarea></td>
                    </tr>
                  
                </table>
              
                 </s:else>
                <table width="100%" border="0" cellspacing="0" cellpadding="0"
                       height="8%">
                    <tr align="center" bgcolor="white">
                        <td align="center" height="12" style="padding-top: 5px">
                            <input class="mmBtn"  type="submit" value="保存"/>
                            &nbsp;
                            <input name="button" type="button" class="mmBtn"
                                   onClick="window.location='${pageContext.request.contextPath}/document/fillPoints.action?document_id=${points.document_id}'" value="返回"/>
                        </td>
                    </tr>
                </table>
        </s:form>
    </body>
</html>